//
//  String+i18n.swift
//  LEDSMART
//
//  Created by zj on 2022/9/28.
//  Copyright © 2022 LXF. All rights reserved.
//

import Foundation


extension String{
    /// NSLocalizedString(self, comment: self)
    public var i18n:String{
        get{
            return NSLocalizedString(self, comment: self)
        }
    }
}


@objc
public extension NSString{
    var i18n:NSString{
        get{
            return (self as String).i18n.asNSString
        }
    }
}
